<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/business/supplier/template.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{supplierApplingDoneTradeList.firstResult}"></f:viewParam>
	   	<f:viewParam name="projectName" value="#{supplierApplingDoneTradeList.parameterValues['projectName']}"></f:viewParam>
   		<f:viewParam name="serialNumber" value="#{supplierApplingDoneTradeList.parameterValues['serialNumber']}"></f:viewParam>	
   	</f:metadata>
   
   	<ui:define name="supplier_content">
   
		<h:form id="searchForm">
			<div class="iethbox_tit">
				<h2>需要申请结算的项目</h2>
				<ui:remove>
					<span>
						<p:link outcome="/index.xhtml" value="平台首页"></p:link>					
						&gt;需要申请结算的项目
					</span>
				</ui:remove>
			</div>
			<div class="iethbox_area">				
				<p:outputLabel value="项目名称"></p:outputLabel>				
				<p:inputText value="#{supplierApplingDoneTradeList.parameterValues['projectName']}"></p:inputText>
				
				<p:outputLabel value="项目编号"></p:outputLabel>				
				<p:inputText value="#{supplierApplingDoneTradeList.parameterValues['serialNumber']}"></p:inputText>
				
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="ApplingDoneTradeList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="ApplingDoneTradeList.xhtml"></p:button>
				</div>				
				
				<div class="clearbt"></div>
			</div>
		
			<div class="iethbox_table">
				<p:dataTable value="#{supplierApplingDoneTradeList.resultList}" var="_trade">

					<p:column>
						<f:facet name="header">公告名称</f:facet>
						#{_trade.bulletin.serialNumber}<br/>
						#{_trade.bulletin.title}
					</p:column>
					
					<p:column width="70">
						<f:facet name="header">选取方式</f:facet>
						#{_trade.bulletin.wayOfChoose.typeName}
					</p:column>
					
					<p:column width="100">
						<f:facet name="header">采购人</f:facet>
						#{_trade.bulletin.buyer.cnname}
					</p:column>
					
					<p:column width="100">
						<f:facet name="header">报名截至日期</f:facet>
						<h:outputText value="#{_trade.bulletin.endingApplyTime}">
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
						</h:outputText>
					</p:column>
					
					<p:column style="text-align: center" width="100" rendered="false">
						<f:facet name="header">操作</f:facet>
						<p:button outcome="applyingDone.xhtml" value="申请结算">
							<f:param name="bulletinId" value="#{_trade.bulletin.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</div>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{supplierApplingDoneTradeList}" />
			</ui:include>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
